/**
 * 规则
 */

import { ISyhtDictRuleItemSelectDictRuleItemList } from "../../../type/ConfigManagement/DicManaged/DicManagedRule";
import { basicIp, newHttpService } from "../../http"

// 规则列表
export  const postSyhtDictRuleGetDictRuleAll = (data: {ruleName?: string}) => {
    const url = basicIp + '/syht/dictRule/getDictRuleAll';
    return newHttpService.postData(url, data)
}

/**
 * 详情
 */
export  const postSyhtDictRuleItemSelectDictRuleItemList = (data: {ruleId: string}) => {
    const url = basicIp + '/syht/dictRuleItem/selectDictRuleItemList';
    return newHttpService.getData(url, data)
}
// 修改规则数据
export const postSyhtDictRuleItemUpdateRuleItem = (data: ISyhtDictRuleItemSelectDictRuleItemList) => {
    const url = basicIp + '/syht/dictRuleItem/updateRuleItem';
    return newHttpService.postData(url, data) 
}